﻿<link href="~/Content/Slidebar.css" rel="stylesheet" />

@if (Session["Email"] != null @*&& !String.IsNullOrEmpty(User.Identity.Name.ToString())*@)
{
    if (Session["Email"] == "Admin@057213.com")
    {
        <div class="function_logout">
            <ul>
                <li>
                    <img src="~/Content/Images/tumlum-16x16.png" />
                    @Html.ActionLink("Customer Manage", "Index", "AdminCus")
                </li>
                <li></li>
                <li>
                    <img src="~/Content/Images/tumlum-16x16.png" />
                    @Html.ActionLink("File Manage", "Index", "AdminFile")
                </li>
            </ul>

        </div>
    }
    else
    {
        <div class="info_user">

            <img src="~/Content/Images/user_icon.png" />
            <br /> <br />
            <text>
                @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
            </text>
        </div>
        <div class="function">
            @using (Html.BeginForm("Logout", "Account", FormMethod.Post, new { id = "logoutForm" }))
            {
                @Html.AntiForgeryToken()
                <a href="@Url.Action("Setting","Account")">

                    <span style="margin-left: 5px">
                        Setting
                    </span>
                    <br />
                    <span class="button_link">
                        <img src="~/Content/Images/setting.png" />
                    </span>
                </a>

                <a href="javascript:document.getElementById('logoutForm').submit()">
                    <span style="margin-left: 5px">
                        Log out
                    </span>
                    <br />
                    <span class="button_link">
                        <img src="~/Content/Images/logout.png" />
                    </span>

                </a>
            }
        </div>
    }
}
else
{
    <div class="function_logout">
        <ul>
            <li>
                <a href="@Url.Action("Index", "Home")">
                    <img src="~/Content/Images/House_icon_18x18.png" /> Welcome
                </a>
            </li>
            <li>
                <img src="~/Content/Images/tumlum-16x16.png" />
                @Html.ActionLink("Contact", "Contact", "Home")
            </li>
            <li></li>
        </ul>

        <ul>
            <li>
                <img src="~/Content/Images/icon_edit-16x16.png" />
                @Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })
            </li>
            <li>
                <img src="~/Content/Images/login-16x16.png" />
                @Html.ActionLink("Login", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
            </li>
        </ul>
    </div>
}
<div class="clear"></div>
<div id="footer">
    <span style="text-align:center; font-weight: bold; font-size: 16px"> KT UPLOADER WEBSITE <br /></span>
    <br />
    Viewing @ApplicationInstance.Application["DangTruyCap"].ToString()
    <br />
    Visited @ApplicationInstance.Application["DaTruyCap"].ToString()
    <br />
    @(DateTime.Now.Year - 1) - @DateTime.Now.Year
</div>



















@*<ul>
        <li>
            <a href="@Url.Action("Register", "Account")">
                <span style="margin-left: 5px">
                    Register
                </span>
                <br />
                <span class="button_link">
                    <img src="~/Content/Images/register.png" />
                </span>
            </a>
        </li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li>
            <a href="@Url.Action("Login", "Account")">
                Log in
                <br />
                <img src="~/Content/Images/login1.png" />
            </a>
        </li>
    </ul>*@